package com.rw.map.utils;

import java.util.List;

import org.springframework.stereotype.Component;

/**
 * 
 * @author forest
 *
 */
@Component
public class RedisUtil extends RedisHandler{

	// 放入待推送的数据
	public void setWaitPushData(String floorId, String lastTime) {
		set(floorId + "_" + lastTime, lastTime, 60);
	}
	
	public void setWaitQueyData(String floorId, String lastTime, String lastDateId) {
		set(floorId, lastTime + "_" + lastDateId);
	}
	
	
	public void removePushData(String floorId, String lastTime) {
		del(floorId + "_" + lastTime);
	}
	
	public List<String> getWaitPushData(String floorId) {
		return likeQueryByKey(floorId);
	}
	
}
